#pragma once
#ifndef PLAYER_H
#define PLAYER_H

#include "DXUT.h"
#include "EntityLiving.h"
#include "../Block.h"

class Player : public EntityLiving {
private:
	/* Inventar */
	Block		m_ActionbarItems[10];
	byte		m_SelectedItem;

	D3DXVECTOR3 m_View;

	bool		m_Exhaused;
	bool		m_Juced;
	float		m_JucedTimeLeft;
protected:
	void		calcStatus(float fElapsedTime);
public:
	Player(const D3DXVECTOR3& pos);

	Block		getSelectedItem();
	D3DXVECTOR3	getPosition();
	void		setPosition(D3DXVECTOR3 position);
	D3DXVECTOR3 getEyePoint();
	D3DXVECTOR3 getViewDirection();
	bool		isExhaused() { return m_Exhaused;};
	bool		isJuced() { return m_Juced;};
	void		setJuced(float fTime);

	void		OnFrameMove( EntityWorld * pWorld, double fTime, float fElapsedTime);

	void		Movement(D3DXVECTOR3 rotation, bool alt, bool j, bool f, bool b, bool l, bool r, float fElapsedTime);
};

#endif